package demo07;
import java.util.*;

public class province {
    private static Map<String,


            List<String>> provinceToCities = new HashMap<>();
    static {

        provinceToCities.put("广东省", Arrays.asList("惠州市", "深圳市", "珠海市"));

        provinceToCities.put("浙江省", Arrays.asList("杭州市", "宁波市", "温州市"));
        provinceToCities.put("云南省", Arrays.asList("玉溪市", "红河州", "昆明市"));

    }
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        System.out.println("请选择省份：");

        String province = scanner.nextLine();


        List<String> cities = provinceToCities.getOrDefault(province, Arrays.asList("未找到对应的城市"));
        System.out.println("您选择的省份 " + province + " 包含以下城市：");

        for (String city : cities) {
            System.out.println(city);
        }


        Scanner ss= new Scanner(System.in);
        System.out.println("请选择城市");
        String pp =scanner.nextLine();
        List<String> es =   Arrays.asList("信息登录完毕");


        for (String ty :es){
            System.out.println(ty);
        }

        scanner.close();
    }


}
